package rest.home.entity;

/**
 * @author: lbc
 * @Date: 2022/5/6 11:22
 * @version: 8.0
 * @describe:
 */
public class Health {
    private Integer olderId;
    private Integer health;
    private String disease;
    private Integer medicineId;

    @Override
    public String toString() {
        String medicineStr=null;
        if (medicineId==0){
            medicineStr="无可救药";
        }else if (medicineId>0){
            medicineStr=medicineId.toString();
        }
        return "老人编号:" + olderId +","+
                "健康状态:" + health +","+
                "所患疾病:" + disease + "," +
                "药物编号:" + medicineStr +";";
    }

    public Integer getOlderId() {
        return olderId;
    }

    public void setOlderId(Integer olderId) {
        this.olderId = olderId;
    }

    public Integer getHealth() {
        return health;
    }

    public void setHealth(Integer health) {
        this.health = health;
    }

    public String getDisease() {
        return disease;
    }

    public void setDisease(String disease) {
        this.disease = disease;
    }

    public Integer getMedicineId() {
        return medicineId;
    }

    public void setMedicineId(Integer medicineId) {
        this.medicineId = medicineId;
    }

    public Health() {
    }

    public Health(Integer olderId, Integer health, String disease, Integer medicineId) {
        this.olderId = olderId;
        this.health = health;
        this.disease = disease;
        this.medicineId = medicineId;
    }
}
